﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using DTO;
using DAO;

namespace BUS
{
    public class FormChinhBUS
    {
        public DataTable Loadhoadon()
        {
            FormChinhDAO DAO = new FormChinhDAO();
            return DAO.Loadhoadon();
        }
        public DataTable Loadhoadonngay(FormChinhDTO DTO)
        {
            FormChinhDAO DAO = new FormChinhDAO();
            return DAO.Loadhoadonngay(DTO);
        }
        public DataTable Loadchitiethoadon(FormChinhDTO DTO)
        {
            FormChinhDAO DAO = new FormChinhDAO();
            return DAO.Loadchitiethoadon(DTO);
        }
        public DataTable Loadchitiethoadonmonan(FormChinhDTO DTO)
        {
            FormChinhDAO DAO = new FormChinhDAO();
            return DAO.Loadchitiethoadonmonan(DTO);
        }
        public DataTable Loadbanan()
        {
            FormChinhDAO DAO = new FormChinhDAO();
            return DAO.Loadbanan();
        }
        public DataTable LoadNV()
        {
            FormChinhDAO DAO = new FormChinhDAO();
            return DAO.LoadNV();
        }
        public DataTable LoadVAT()
        {
            FormChinhDAO DAO = new FormChinhDAO();
            return DAO.LoadVAT();
        }
        public DataTable Loadtenmon()
        {
            FormChinhDAO DAO = new FormChinhDAO();
            return DAO.Loadtenmon();
        }
        public void xoahoadon(FormChinhDTO DTO)
        {
            FormChinhDAO DAO = new FormChinhDAO();
            DAO.xoahoadon(DTO);

        }
        public void Themhoadon(FormChinhDTO DTO)
        {
            FormChinhDAO DAO = new FormChinhDAO();
            DAO.Themhoadon(DTO);
        }
        public void Themchitiethoadon(FormChinhDTO DTO)
        {
            FormChinhDAO DAO = new FormChinhDAO();
            DAO.Themchitiethoadon(DTO);
        }
        public DataTable xuatmamonan(FormChinhDTO DTO)
        {
            FormChinhDAO DAO = new FormChinhDAO();
            return DAO.xuatmamonan(DTO);
        }
        public void suahoadon(FormChinhDTO DTO)
        {
            FormChinhDAO DAO = new FormChinhDAO();
            DAO.suahoadon(DTO);
        }
        public void suachitiethoadon(FormChinhDTO DTO)
        {
            FormChinhDAO DAO = new FormChinhDAO();
            DAO.suachitiethoadon(DTO);
        }
        public void xoachitiet(FormChinhDTO DTO)
        {
            FormChinhDAO DAO = new FormChinhDAO();
            DAO.xoachitiet(DTO);
        }
        public void xoachitiethet(FormChinhDTO DTO)
        {
            FormChinhDAO DAO = new FormChinhDAO();
            DAO.xoachitiethet(DTO);
        }
        public DataTable max()
        {
            FormChinhDAO DAO = new FormChinhDAO();
            return DAO.max();
        }
    }
}
